package com.edu.demo.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 签到表
 * </p>
 *
 * @author jixuewei
 * @since 2023-01-12
 */
@ApiModel(value = "Sign对象", description = "签到表")
public class Sign implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer stuId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date morningSignIn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date morningSignOut;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date noonSignIn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date noonSignOut;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date dateTime;


    @Getter@Setter
    private String stuName;

    @TableField(exist = false)
    @Getter@Setter
    private String proName;

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public Date getMorningSignIn() {
        return morningSignIn;
    }

    public void setMorningSignIn(Date morningSignIn) {
        this.morningSignIn = morningSignIn;
    }

    public Date getMorningSignOut() {
        return morningSignOut;
    }

    public void setMorningSignOut(Date morningSignOut) {
        this.morningSignOut = morningSignOut;
    }

    public Date getNoonSignIn() {
        return noonSignIn;
    }

    public void setNoonSignIn(Date noonSignIn) {
        this.noonSignIn = noonSignIn;
    }

    public Date getNoonSignOut() {
        return noonSignOut;
    }

    public void setNoonSignOut(Date noonSignOut) {
        this.noonSignOut = noonSignOut;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    @Override
    public String toString() {
        return "Sign{" +
            "stuId = " + stuId +
            ", morningSignIn = " + morningSignIn +
            ", morningSignOut = " + morningSignOut +
            ", noonSignIn = " + noonSignIn +
            ", noonSignOut = " + noonSignOut +
        "}";
    }
}
